package com.atguigu.common.constant;

/**
 * <简述>
 * <详细描述>
 *
 * @author syf
 * @date 2022年03月07日 15:37
 */
public class ProductConstant {
    public enum AttrEnum{
        AtTTR_BASE_TYPE(1, "基本属性"),ATTE_SALE_TYPE(0, "销售属性");
        private int code;
        private String name;

        AttrEnum(int code, String name){
            this.code = code;
            this.name = name;
        }

        public int getCode() {
            return code;
        }

        public String getName() {
            return name;
        }
    }

    public enum StatusEnum{
        NEW_SPU(0, "新建"),UP_SPU(1, "商品上架"),DOWN_SPU(2, "商品下架");
        private int code;
        private String name;

        StatusEnum(int code, String name){
            this.code = code;
            this.name = name;
        }

        public int getCode() {
            return code;
        }

        public String getName() {
            return name;
        }
    }
}
